namespace ChumChase.Twitter
{
    using System;
    using Caliburn.Core;
    using Model;

    [Serializable]
    public class TwitterSettings : PropertyChangedBase, IFeedProviderSettings
    {
        private string _remoteKey;
        private string _username;

        public string Username
        {
            get { return _username; }
            set
            {
                _username = value;
                NotifyOfPropertyChange("Username");
            }
        }

        public string Password
        {
            get { return _remoteKey; }
            set
            {
                _remoteKey = value;
                NotifyOfPropertyChange("Password");
            }
        }

        public bool IsValid()
        {
            return !string.IsNullOrEmpty(Username)
                   && !string.IsNullOrEmpty(Password);
        }
    }
}